﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NeuroCheck.BaseTypes.DataFormatConverter;

namespace CLVisionCommuDFC
{
    public class PinInfoDataCustom
    {
        private int m_ID;

        private string m_UserDefinedName;

        private string m_Name;

        private NcFmtCnvPinDataTypeInfo m_DataType;

        private NcFmtCnvPinTypeInfo m_PinType;

        private Collection<int> m_HardwareBits;
        private object m_Tag;

        private bool _isbit;

        private int _bitIndex;
      

        public int ID
        {
            get
            {
                return m_ID;
            }
            set
            {
                m_ID = value;
            }
        }

        public string UserDefinedName
        {
            get
            {
                return m_UserDefinedName;
            }
            set
            {
                m_UserDefinedName = value;
            }
        }

        public string Name
        {
            get
            {
                return m_Name;
            }
            set
            {
                m_Name = value;
            }
        }

        public NcFmtCnvPinDataTypeInfo DataType
        {
            get
            {
                return m_DataType;
            }
            set
            {
                m_DataType = value;
            }
        }

        public NcFmtCnvPinTypeInfo PinType
        {
            get
            {
                return m_PinType;
            }
            set
            {
                m_PinType = value;
            }
        }

        public Collection<int> HardwareBits
        {
            get
            {
                return m_HardwareBits;
            }
            set
            {
                m_HardwareBits = value;
            }
        }

        public object Tag
        {
            get
            {
                return m_Tag;
            }
            set
            {
                m_Tag = value;
            }
        }

        public bool Isbit { get => _isbit; set => _isbit = value; }
        public int BitIndex { get => _bitIndex; set => _bitIndex = value; }

        public PinInfoDataCustom()
        {
            m_DataType = NcFmtCnvPinDataTypeInfo.Invalid;
            m_PinType = NcFmtCnvPinTypeInfo.Invalid;
        }
    }
}
